//
//  CMBaseHttpDao.m
//  GuiJinShu
//
//  Created by tanqilong on 16/8/22.
//  Copyright © 2016年 CaiMao. All rights reserved.
//

#import "CMBaseHttpDao.h"
//#import "GJSHttpAgent.h"

@interface CMBaseHttpDao ()

@end

@implementation CMBaseHttpDao

-(id)initWithParameters:(NSMutableDictionary *)dic IndicatorView:(UIView *)view LoadingFinished:(sucBlock)sucBlock CancelLoading:(cancelBlock)cancelBlock LoadingError:(errorBlock)errorBlock {
    [self processParam:dic];
    return [super initWithParameters:dic IndicatorView:view LoadingFinished:sucBlock CancelLoading:cancelBlock LoadingError:errorBlock];
}

-(id)initWithUrl:(NSString *)url Parameters:(NSMutableDictionary *)dic IndicatorView:(UIView *)view LoadingFinished:(sucBlock)sucBlock CancelLoading:(cancelBlock)cancelBlock LoadingError:(errorBlock)errorBlock {
    [self processParam:dic];
    return [super initWithUrl:url Parameters:dic IndicatorView:view LoadingFinished:sucBlock CancelLoading:cancelBlock LoadingError:errorBlock];
}

-(id)initNativeWithParameters:(NSMutableDictionary *)dic IndicatorView:(UIView *)view LoadingFinished:(sucBlock)sucBlock CancelLoading:(cancelBlock)cancelBlock LoadingError:(errorBlock)errorBlock {
    [self processParam:dic];
    return [super initNativeWithParameters:dic IndicatorView:view LoadingFinished:sucBlock CancelLoading:cancelBlock LoadingError:errorBlock];
}

-(id)initNativeAndNetWithParameters:(NSMutableDictionary *)dic IndicatorView:(UIView *)view LoadingFinished:(sucBlock)sucBlock CancelLoading:(cancelBlock)cancelBlock LoadingError:(errorBlock)errorBlock {
    [self processParam:dic];
    return [super initNativeAndNetWithParameters:dic IndicatorView:view LoadingFinished:sucBlock CancelLoading:cancelBlock LoadingError:errorBlock];
}

//添加公共参数
-(void)processParam:(NSMutableDictionary * )dic {
//    NSDictionary * commonParamDic = [[GJSHttpAgent shareGJSHttpAgent] specialParams];
//    [dic setValuesForKeysWithDictionary:commonParamDic];
    //打印参数信息
    self.islogMessage = YES;
}

@end
